package com.ajpai.qchat.core;

import java.util.concurrent.ConcurrentHashMap;

public class Member implements ISend, IReceive {
    /**
     * 标识
     */
    public String uuid;
    /**
     * 姓
     */
    public String firstName;
    /**
     * 名称
     */
    public String name;
    /**
     * 头像
     */
    public String avatar;

    /**
     * 已加入的群组
     */
    public ConcurrentHashMap joinGroupMap = new ConcurrentHashMap();

    /**
     * 最近聊天的群组
     */
    public ConcurrentHashMap recentGroupMap = new ConcurrentHashMap();

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    /**
     * 发送消息
     *
     * @param sender   发送人标识
     * @param receiver 接收人标识
     * @param msg      消息
     */
    @Override
    public void send(String sender, String receiver, Object msg) {

    }

    /**
     * 接收消息
     *
     * @param sender 发送人
     * @param msg    消息
     */
    @Override
    public void receive(String sender, Object msg) {

    }
}
